﻿using System;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.ComponentModel;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;

namespace SistemaAdministracion.Models.BaseClass
{
    [Table("institucion", Schema = "genericos")]
    public class Institucion
    {

        public Institucion()
        {
            this.Mutual = new HashSet<Mutual>();
            this.CajaCompensacion = new HashSet<CajaCompensacion>();
        }

        [Column("idinstitucion")]
        public int IdInstituto { get; set; }
        [Column("tipoinstitucion")]
        public int tipoInstituto { get; set; }
        [Column("rut")]
        public int RUT { get; set; }
        [Column("dv")]
        public char DV { get; set; }
        [Column("razonsocial")]
        public string RazonSocial { get; set; }
        [Column("vigencia")]
        public int Vigencia { get; set; }


        public virtual ICollection<Mutual> Mutual { get; set; }
        public virtual ICollection<CajaCompensacion> CajaCompensacion { get; set; }

    }
}
